<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.prime.com.tr/ui">
    <ui:composition template="templateadmin.xhtml">
        <ui:define name="content">
            <script type="text/javascript">
            var piechartStyle ={
                padding:20,
                legend:{
                    display:"right",spacing:10
                }
            };
            </script>
            <table width="100%">
                <tr>
                    <td><h3>REVENUE OF CAR RENTAL SERVICE</h3></td>
                    <td><h3>REVENUE OF PACKAGE TOUR SERVICE</h3></td>
                    <td><h3>ASSESSMENT TO PACKAGE TOUR OF CUSTOMER FAVORITE</h3></td>
                </tr>
                <tr>
                    <td><p:pieChart id="chart1" style="piechartStyle" value="#{analysisBean.anlCar}" var="anlCar" categoryField="#{anlCar.carName}" dataField="#{anlCar.carPercent}" width="350px" height="350px"></p:pieChart></td>
                    <td><p:pieChart id="chart2" style="piechartStyle" value="#{analysisBean.anlTour}" var="anlTour" categoryField="#{anlTour.packageTourName}" dataField="#{anlTour.percent}" width="350px" height="350px"></p:pieChart></td>
                    <td><p:pieChart id="chart3" style="piechartStyle" value="#{analysisBean.anlType}" var="anlType" categoryField="#{anlType.packageType}" dataField="#{anlType.percent}" width="350px" height="350px"></p:pieChart></td>
                </tr>
            </table>
            
            
        </ui:define>
    </ui:composition>
</html>

